<template>
    <div>
        <van-nav-bar title="订单" left-text="返回" left-arrow @click-left="()=>{$router.push('/login/a3')}" />
        <div>
            订单名称:{{ dd.product_code }}
            商品id:{{ dd.orderId }}
            商品时间:{{ dd.create_time }}
            商品价格:{{ dd.totalPrice }}
            <router-link :to="'/ddtz'">
                <van-button type="primary" size="large">确认支付</van-button>
            </router-link>
        </div>
    </div>
</template>

<script setup>
import { ref } from 'vue';
import { ddApi } from '@/api/api'
let dd = ref({})
ddApi().then(res => {
    console.log('订单数据', res)
    dd.value = res.data.data
})
</script>

<style lang="scss" scoped></style>